﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp.拦截器
{
    public class OrderInterceptHandler: BaseOrderInterceptHandler
    {
        /// <summary>
        /// 获取订单拦截过滤插件
        /// </summary>
        /// <returns>插件</returns>
        public override IEnumerable<IBusinessPlugin<OrderInterceptContext>> GetOrderInterceptPlugins()
        {
            BaseOrderInterceptHandler handler;

            //这里根据需要，创建不同所需的Handler
            handler = new DefaultOrderInterceptHandler();

            return handler.GetOrderInterceptPlugins();
        }
    }
}
